package com.bmps.springcloud.insuredmicroservice.service.calculate;

import com.bmps.springcloud.insuredmicroservice.model.accept.medium.PolicyRiskInfoModel;
import com.bmps.springcloud.insuredmicroservice.repository.calculate.coresystem.HistoricalPolicyRepository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * description:
 *
 * @author jackdaw
 * @date 2020-04-15 15:11
 */
@Service
public class HistoricalPolicyServiceImpl implements HistoricalPolicyService {
    private final HistoricalPolicyRepository HistoricalPolicyRepository;

    public HistoricalPolicyServiceImpl(com.bmps.springcloud.insuredmicroservice.repository.calculate.coresystem.HistoricalPolicyRepository historicalPolicyRepository) {
        HistoricalPolicyRepository = historicalPolicyRepository;
    }

    @Override
    public List<PolicyRiskInfoModel> queryHistoryPolicy(String customerNo, String prtNo) {
        return HistoricalPolicyRepository.queryHistoricalPolicy(customerNo, prtNo);
    }
}
